package com.huobi.api.response.market;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@AllArgsConstructor
public class MarketDepthResponse {

    /**
     * ch : market.BTC_CQ.depth.step5
     * status : ok
     * tick : {"asks":[[8438.4,3428],[8438.7,2],[8438.8,25],[8438.9,1],[8439.1,25],[8439.3,70],[8439.4,40],[8439.5,1],[8439.8,51],[8440.1,1],[8440.3,54],[8440.4,8],[8440.5,92],[8440.7,1],[8440.8,15],[8440.9,58],[8441,17],[8441.3,43],[8441.4,893],[8441.6,40],[8441.7,20],[8441.8,20],[8441.9,69],[8442,1],[8442.2,10],[8442.4,19],[8442.6,27],[8442.8,284],[8442.9,3],[8443.1,51],[8443.2,4],[8443.4,23],[8443.5,205],[8443.6,196],[8443.7,106],[8443.8,54],[8444,52],[8444.1,52],[8444.2,45],[8444.3,23],[8444.4,1],[8444.5,1],[8444.8,55],[8445,19],[8445.1,188],[8445.2,1],[8445.4,45],[8445.7,11],[8445.8,2],[8446,41],[8446.5,11],[8446.6,51],[8446.7,1],[8446.8,2],[8447,4],[8447.1,1],[8447.2,101],[8447.3,4],[8447.6,3],[8447.8,3],[8447.9,3],[8448,53],[8448.1,1],[8448.2,23],[8448.3,107],[8448.4,33],[8448.5,21],[8448.6,24],[8448.7,2],[8448.8,19],[8449,170],[8449.2,38],[8449.3,1],[8449.5,12],[8449.7,10],[8449.8,4],[8449.9,30],[8450,58],[8450.1,3],[8450.4,3],[8450.8,5],[8450.9,43],[8451.2,110],[8451.3,7],[8451.7,42],[8451.8,405],[8452,400],[8452.1,55],[8452.3,3],[8452.5,1],[8452.6,4],[8452.7,260],[8452.9,3],[8453.2,3],[8453.9,651],[8454.4,40],[8454.6,100],[8454.9,32],[8455,7],[8455.2,415],[8455.7,109],[8455.8,200],[8456.4,88],[8456.7,7],[8456.9,529],[8457.5,1],[8458,27],[8458.2,350],[8458.5,90],[8459,30],[8459.1,2],[8459.4,170],[8459.6,1],[8459.9,1],[8460,182],[8460.7,1],[8460.9,149],[8462.2,541],[8462.9,37],[8463,140],[8464.1,5],[8464.8,88],[8465,1],[8465.6,120],[8465.9,180],[8466,66],[8466.2,42],[8466.4,461],[8467,5],[8467.1,24],[8467.6,37],[8468,6],[8468.2,3],[8468.4,169],[8468.9,85],[8469.4,128],[8470,79],[8470.1,50],[8470.5,50],[8470.8,578],[8472,268],[8472.1,262],[8472.2,50],[8473.2,29],[8473.5,100],[8474,386],[8474.3,309],[8474.5,350],[8475,583],[8475.1,80]],"bids":[[8438.3,2604],[8438,28],[8437.9,156],[8437.7,4],[8437.6,25],[8437.4,1],[8437.1,1410],[8437,40],[8436.8,1],[8436.4,1],[8436.3,7],[8436.2,32],[8436.1,102],[8436,2],[8435.7,1],[8435.4,4],[8435.3,7],[8435.2,10],[8435.1,4],[8435,301],[8434.9,20],[8434.8,1],[8434.6,7],[8434.5,3],[8434.4,1],[8434.1,1],[8434,108],[8433.8,53],[8433.6,1],[8433.5,84],[8433.3,8],[8433.2,40],[8433,8],[8432.8,1154],[8432.7,1],[8432.6,268],[8432.4,21],[8432.3,133],[8432.2,5],[8432.1,10],[8432,378],[8431.9,33],[8431.7,1],[8431.6,4],[8431.5,47],[8431.4,20],[8431.2,140],[8431.1,1],[8430.9,21],[8430.8,1],[8430.7,54],[8430.6,106],[8430.5,1],[8430.2,35],[8430,727],[8429.9,23],[8429.6,36],[8429.5,40],[8429.4,5],[8429.3,19],[8429.2,40],[8429,122],[8428.9,1],[8428.8,1],[8428.6,47],[8428.5,1],[8428.3,1],[8428,457],[8427.7,1],[8427.6,64],[8427.3,21],[8427.2,40],[8426.9,5],[8426.8,1],[8426.6,1],[8426.4,1],[8426.2,20],[8426.1,262],[8425.7,9],[8425.5,83],[8425.3,374],[8425.2,40],[8425,1209],[8424.9,60],[8424.8,20],[8424.2,20],[8424,503],[8423.9,3],[8423.6,229],[8423.2,85],[8423,362],[8422.9,16],[8422.8,16],[8422.7,1],[8422.6,1],[8422,11],[8421.9,89],[8421.4,26],[8421.1,81],[8421,291],[8420.9,100],[8420.7,2],[8420.6,50],[8420.5,170],[8420.2,5],[8420,2160],[8419.1,1],[8419,407],[8418.8,10],[8418.5,41],[8418.1,50],[8418,189],[8417.9,2],[8417.8,201],[8417.6,256],[8417.5,1],[8417.2,16],[8417.1,109],[8417,120],[8416.9,1],[8416.8,100],[8416.5,405],[8416.4,5],[8416.1,1],[8416,85],[8415.6,4],[8415.5,35],[8415.3,22],[8415,122],[8414.7,1],[8414,528],[8413.7,160],[8413.6,3],[8413.2,1],[8413.1,5],[8413,626],[8412.5,1],[8412,313],[8411.4,85],[8411,235],[8410.6,50],[8410.5,188],[8410.4,37],[8410.2,11],[8410.1,10],[8410,1379],[8409.4,16],[8409.1,1],[8409,32],[8408.9,10]],"ch":"market.BTC_CQ.depth.step5","id":1570779332,"mrid":21588539100,"ts":1570779332210,"version":1570779332}
     * ts : 1570779332300
     */

    private String ch;
    private String status;
    private TickBean tick;
    private Long ts;

    @Data
    @AllArgsConstructor
    public static class TickBean {
        /**
         * asks : [[8438.4,3428],[8438.7,2],[8438.8,25],[8438.9,1],[8439.1,25],[8439.3,70],[8439.4,40],[8439.5,1],[8439.8,51],[8440.1,1],[8440.3,54],[8440.4,8],[8440.5,92],[8440.7,1],[8440.8,15],[8440.9,58],[8441,17],[8441.3,43],[8441.4,893],[8441.6,40],[8441.7,20],[8441.8,20],[8441.9,69],[8442,1],[8442.2,10],[8442.4,19],[8442.6,27],[8442.8,284],[8442.9,3],[8443.1,51],[8443.2,4],[8443.4,23],[8443.5,205],[8443.6,196],[8443.7,106],[8443.8,54],[8444,52],[8444.1,52],[8444.2,45],[8444.3,23],[8444.4,1],[8444.5,1],[8444.8,55],[8445,19],[8445.1,188],[8445.2,1],[8445.4,45],[8445.7,11],[8445.8,2],[8446,41],[8446.5,11],[8446.6,51],[8446.7,1],[8446.8,2],[8447,4],[8447.1,1],[8447.2,101],[8447.3,4],[8447.6,3],[8447.8,3],[8447.9,3],[8448,53],[8448.1,1],[8448.2,23],[8448.3,107],[8448.4,33],[8448.5,21],[8448.6,24],[8448.7,2],[8448.8,19],[8449,170],[8449.2,38],[8449.3,1],[8449.5,12],[8449.7,10],[8449.8,4],[8449.9,30],[8450,58],[8450.1,3],[8450.4,3],[8450.8,5],[8450.9,43],[8451.2,110],[8451.3,7],[8451.7,42],[8451.8,405],[8452,400],[8452.1,55],[8452.3,3],[8452.5,1],[8452.6,4],[8452.7,260],[8452.9,3],[8453.2,3],[8453.9,651],[8454.4,40],[8454.6,100],[8454.9,32],[8455,7],[8455.2,415],[8455.7,109],[8455.8,200],[8456.4,88],[8456.7,7],[8456.9,529],[8457.5,1],[8458,27],[8458.2,350],[8458.5,90],[8459,30],[8459.1,2],[8459.4,170],[8459.6,1],[8459.9,1],[8460,182],[8460.7,1],[8460.9,149],[8462.2,541],[8462.9,37],[8463,140],[8464.1,5],[8464.8,88],[8465,1],[8465.6,120],[8465.9,180],[8466,66],[8466.2,42],[8466.4,461],[8467,5],[8467.1,24],[8467.6,37],[8468,6],[8468.2,3],[8468.4,169],[8468.9,85],[8469.4,128],[8470,79],[8470.1,50],[8470.5,50],[8470.8,578],[8472,268],[8472.1,262],[8472.2,50],[8473.2,29],[8473.5,100],[8474,386],[8474.3,309],[8474.5,350],[8475,583],[8475.1,80]]
         * bids : [[8438.3,2604],[8438,28],[8437.9,156],[8437.7,4],[8437.6,25],[8437.4,1],[8437.1,1410],[8437,40],[8436.8,1],[8436.4,1],[8436.3,7],[8436.2,32],[8436.1,102],[8436,2],[8435.7,1],[8435.4,4],[8435.3,7],[8435.2,10],[8435.1,4],[8435,301],[8434.9,20],[8434.8,1],[8434.6,7],[8434.5,3],[8434.4,1],[8434.1,1],[8434,108],[8433.8,53],[8433.6,1],[8433.5,84],[8433.3,8],[8433.2,40],[8433,8],[8432.8,1154],[8432.7,1],[8432.6,268],[8432.4,21],[8432.3,133],[8432.2,5],[8432.1,10],[8432,378],[8431.9,33],[8431.7,1],[8431.6,4],[8431.5,47],[8431.4,20],[8431.2,140],[8431.1,1],[8430.9,21],[8430.8,1],[8430.7,54],[8430.6,106],[8430.5,1],[8430.2,35],[8430,727],[8429.9,23],[8429.6,36],[8429.5,40],[8429.4,5],[8429.3,19],[8429.2,40],[8429,122],[8428.9,1],[8428.8,1],[8428.6,47],[8428.5,1],[8428.3,1],[8428,457],[8427.7,1],[8427.6,64],[8427.3,21],[8427.2,40],[8426.9,5],[8426.8,1],[8426.6,1],[8426.4,1],[8426.2,20],[8426.1,262],[8425.7,9],[8425.5,83],[8425.3,374],[8425.2,40],[8425,1209],[8424.9,60],[8424.8,20],[8424.2,20],[8424,503],[8423.9,3],[8423.6,229],[8423.2,85],[8423,362],[8422.9,16],[8422.8,16],[8422.7,1],[8422.6,1],[8422,11],[8421.9,89],[8421.4,26],[8421.1,81],[8421,291],[8420.9,100],[8420.7,2],[8420.6,50],[8420.5,170],[8420.2,5],[8420,2160],[8419.1,1],[8419,407],[8418.8,10],[8418.5,41],[8418.1,50],[8418,189],[8417.9,2],[8417.8,201],[8417.6,256],[8417.5,1],[8417.2,16],[8417.1,109],[8417,120],[8416.9,1],[8416.8,100],[8416.5,405],[8416.4,5],[8416.1,1],[8416,85],[8415.6,4],[8415.5,35],[8415.3,22],[8415,122],[8414.7,1],[8414,528],[8413.7,160],[8413.6,3],[8413.2,1],[8413.1,5],[8413,626],[8412.5,1],[8412,313],[8411.4,85],[8411,235],[8410.6,50],[8410.5,188],[8410.4,37],[8410.2,11],[8410.1,10],[8410,1379],[8409.4,16],[8409.1,1],[8409,32],[8408.9,10]]
         * ch : market.BTC_CQ.depth.step5
         * id : 1570779332
         * mrid : 21588539100
         * ts : 1570779332210
         * version : 1570779332
         */

        private String ch;
        private Integer id;
        private Long mrid;
        private Long ts;
        private Integer version;
        private List<List<BigDecimal>> asks;
        private List<List<BigDecimal>> bids;

    }
}
